package com.hfkh.keyun.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;
import java.time.LocalDateTime;

@Getter
@Setter
@NoArgsConstructor
@TableName("tb_video")
public class Video implements Serializable {
    private static final long serialVersionUID = 1L;
    @TableId(value = "id" ,type = IdType.AUTO) //自增
    private Integer id;//id
    @TableField("video_title")
    private String videoTitle;//视频标题
    @TableField("video_url")
    private String videoUrl;//视频地址
    @TableField("course_id")
    private Integer courseId;//所属课程ID
    @TableField("tb_course")
    private Course course;//课程对象
    @TableField("create_date")
    private LocalDateTime createDate;//创建时间
    @TableField("delete_flags")
    @TableLogic
    private Integer deleteFlags;
    @TableField("video_thumb")
    private Integer videoThumb;//点赞

}
